package xrz.com.jr.adapter;

import android.content.Context;
import android.widget.TextView;

import com.joanzapata.android.BaseAdapterHelper;
import com.joanzapata.android.QuickAdapter;

import xrz.com.jr.R;
import xrz.com.jr.entity.KeFu;

/**
 * Created by Administrator on 2016/7/29.
 */
public class Adapter_Kefu extends QuickAdapter<KeFu> {

    public Adapter_Kefu(Context context) {
        super(context, R.layout.item_kefu);
    }

    @Override
    protected void convert(BaseAdapterHelper helper, KeFu item) {
        TextView tv_name = helper.getView(R.id.tv_name);
        TextView tv_qq = helper.getView(R.id.tv_qq);
        tv_name.setText(item.getName());
        tv_qq.setText("QQ:" + item.getQq());
    }
}
